package com.yl.auth.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.entity.Renwujiaojie;
import com.yl.auth.service.RenwujiaojieService;
import com.yl.common.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ln
 * @since 2023-07-12
 */
@RestController
@Api(tags = "任务交接")
@RequestMapping("/admin/renwujiaojie")
public class RenwujiaojieController {
    @Resource
    private RenwujiaojieService renwujiaojieService;
    @GetMapping("/getrenwujiaojie/{page}/{limit}")
    @ApiOperation(value = "任务交接")
    public Result getrenwujiaojie(@PathVariable @ApiParam("当前页") Integer page, @PathVariable @ApiParam("总条数") Integer limit, @ApiParam("提交人") String tjname,@ApiParam("接收人") String jsname,@ApiParam("联系方式") String phone,@ApiParam("提交时间") String tjtime){
        Page<Renwujiaojie> iPage = new Page<>(page,limit);
        Page<Renwujiaojie> pageVo = renwujiaojieService.getrenwujiaojie(iPage, tjname, jsname,phone,tjtime);
        return Result.ok(pageVo);
    }

}

